package com.crawler.search.index.service;


import com.crawler.search.index.builder.DocSaverBuilder;

/**
 * 
 * ES数据操作接口（增删改）
 * @Class Name ESService
 * @author zhangyonghui
 * @Create In 下午3:50:26
 */
public interface ESDocSaver {
	
	
    /**
     * 插入单条数据
     * @param docSaverBuilder
     * @return
     */
    public boolean insert(DocSaverBuilder docSaverBuilder) ;
    
    
    /**
     * 更新数据
     * @param docSaverBuilder
     * @return
     */
    public boolean update(DocSaverBuilder docSaverBuilder) ;


    /**
     * 根据ID删除索引
     * @param docSaverBuilder
     * @return
     */
    public boolean delete(DocSaverBuilder docSaverBuilder) ;

    /**
     * 根据ID获取索引数据
     * @param docSaverBuilder
     * @return
     */
    public String getById(DocSaverBuilder docSaverBuilder) ;

}
